﻿using System;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.Collections.Generic;
using System.Text;

namespace eventr.Web.Service
{
    /// <summary>
    /// In this example this is how the Silverlight app gets it's image data and simple analytics
    /// </summary>
    [ServiceContract(Namespace = "")]
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    public class ImageViewCounter
    {
        [OperationContract]
        public void SaveImageView(int id)
        {
            ImageViewManager.SaveImageView(id);
        }

        [OperationContract]
        public List<ImageMetaData> GetImageViews()
        {
            return ImageViewManager.GetImageViews();
        }        
    }
}
